 <?php
     if(isset($_FILES['icerikResim']['name']))
	 {
	    $filename = basename($_FILES['icerikResim']['name']);
		if (move_uploaded_file($_FILES['icerikResim']['tmp_name'], '../lettaweb/image/' . $filename)) {
			$data = array('filename' => $filename);
		} else 
		{
			$data = array('error' => 'Failed to save');
		}
     }
 ?>